package com.xnx3.banmahuishou.core.entity;

import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import com.xnx3.j2ee.entity.BaseEntity;

/**
* 用户意见反馈表
* @author 王晓龙
*/
@Entity()
@Table(name = "laji_feedback")
public class Feedback extends BaseEntity implements java.io.Serializable {
	private Integer id;	//自增id
	private Integer userid;	//用户id，关联user.id
	private String message;	//用户反馈的信息，最大255长度
	private Integer addTime;	//添加时间，十位数时间戳
	
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "userid", columnDefinition="int(11) COMMENT '用户id,关联user.id' default '0'")
	public Integer getUserid() {
		return userid;
	}
	public void setUserid(Integer userid) {
		this.userid = userid;
	}
	@Column(name = "message", columnDefinition="char(255) COLLATE utf8mb4_general_ci COMMENT '用户反馈的信息, 最大255长度' default ''")
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	@Column(name = "add_time", columnDefinition="int(11) COMMENT '添加时间, 十位数时间戳' default '0'")
	public Integer getAddTime() {
		return addTime;
	}
	public void setAddTime(Integer addTime) {
		this.addTime = addTime;
	}
	@Override
	public String toString() {
		return "Feedback [id=" + id + ", userid=" + userid + ", message=" + message + ", addTime=" + addTime + "]";
	}
	
}
